//接口文件index.js
import {request} from "./core";
import API from "./constants";

const  APIClient = {
  login(username,password){
    return request(API.METHODS.POST,API.PATH.LOGIN,{username:username,password:password});
  },
  
  register(){
    return request(API.METHODS.POST,API.PATH.REGISTER,{});
  },
}

export default APIClient;

